package com.cloudnote.web.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.cloudnote.web.util.RandomStringGenerator;


@Entity
@Table(name="T_USER")
public class User implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 4935043083710575447L;
	private String id;
	private String name;
	private String passwd;
	private String age;
	private String sex;
	private String email;

	

	public User() {
		super();
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}
	@Id
	@GeneratedValue(generator = "system-uuid",strategy=GenerationType.AUTO)  
    @GenericGenerator(name = "system-uuid", strategy = "uuid") 
    @Column(unique=true,nullable=false,insertable=true)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	


	public String getPasswd() {
		return passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
//	@Column(name ="name",length=32)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
